package com.yc.web.service;

import com.yc.api.HostInfo;
import com.yc.web.mapper.HostInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true)
public class HostInfoServiceImpl implements HostInfoService {

    @Autowired
    private HostInfoMapper hostInfoMapper;


    @Override
    public List<HostInfo> findHostInfoList() {
        return hostInfoMapper.findHostInfoList();
    }

    @Override
    public List<HostInfo> findHostInfo(String host) {
        return hostInfoMapper.findHostInfo(host);
    }

}
